package com.advertisementsystem.vo;



import com.advertisementsystem.Dto.TimeSlot;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Data
public class AdScheduleVO {
    private Long id;
    private Long advertisementId;
    private Long deviceId;
    private String deviceName;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime startTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime endTime;

    @TableField(typeHandler = JacksonTypeHandler.class)
    private List<TimeSlot> timeSlots;
    private String status;
    private String remark;

    private Long impressions;
    private Long clicks;
    private BigDecimal costPerMille;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createdTime;
}
